﻿// This file is ES5 on purpose.
// It does not go through webpack; it is directly loaded by the html.
(function() {
  /* eslint-disable no-var */
  var mode = window.location.href.match(/mode=([a-z0-9\-]+)\&?/i);
  var isDev = mode && mode[1] === 'dev';
  window.IS_DEV = isDev;
  var jquerycs = 'jquery.min.js';
    var jsonhelpcs = 'JsonHelper.js';
  
    var initialparamcs = 'InitialParameter_Map.js';
    window.JQUERY_URL = `../ThirdParty/JQuery/${jquerycs}`;
    window.JSONHELP_URL = `../Core/${jsonhelpcs}`;
    window.INITIALPARAM_URL = `../Core/${initialparamcs}`;
   
    document.write(`<scr${'i'}pt type="text/javascript" src="${window.JQUERY_URL}"></scr${'i'}pt>`);
    document.write(`<scr${'i'}pt type="text/javascript" src="${window.JSONHELP_URL}"></scr${'i'}pt>`);
    document.write(`<scr${'i'}pt type="text/javascript" src="${window.INITIALPARAM_URL}"></scr${'i'}pt>`);
    
  /* eslint-enable no-var */
})();

